\hypertarget{class_yig_cable_graphic}{
\section{YigCableGraphic Class Reference}
\label{class_yig_cable_graphic}\index{YigCableGraphic@{YigCableGraphic}}
}


{\ttfamily \#include $<$yigcablegraphic.h$>$}

Inheritance diagram for YigCableGraphic:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2cm]{class_yig_cable_graphic}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
enum \hyperlink{class_yig_cable_graphic_af184598588b32de1439cc157858141db}{CableOutputType} \{ {\bfseries NO\_\-OUTPUT}, 
{\bfseries AUDIO}, 
{\bfseries MODULATION}
 \}
\end{DoxyCompactItemize}
\subsection*{Signals}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{class_yig_cable_graphic_a3cb69e60cf55da31adbb7d58acd3c8e8}{cableKeyboardDeleted} (QString mapKey)
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_yig_cable_graphic_a4d24010223810768cf2910b789e90820}{YigCableGraphic} (const QLineF \&line, QString inputKey, QString outputKey=\char`\"{}\char`\"{}, \hyperlink{class_yig_cable_graphic_af184598588b32de1439cc157858141db}{CableOutputType} outputType=NO\_\-OUTPUT)
\item 
void \hyperlink{class_yig_cable_graphic_a65c2bb0def55c09b0eb50f9f6fdffc9a}{addArrow} ()
\item 
void \hyperlink{class_yig_cable_graphic_a4f336f5f2e7ef756b036e604277321ee}{removeArrow} ()
\item 
QString \hyperlink{class_yig_cable_graphic_a1174111d6445e3d7b3bd4541bfb4b584}{getInputKey} ()
\item 
QString \hyperlink{class_yig_cable_graphic_a95d44b11abbe2b39d3923ea4ad854be7}{getOutputKey} ()
\item 
void \hyperlink{class_yig_cable_graphic_a54b1003969de5574706ab093cb994013}{setOutputKey} (QString outputKey)
\item 
\hyperlink{class_yig_cable_graphic_af184598588b32de1439cc157858141db}{CableOutputType} \hyperlink{class_yig_cable_graphic_adaa87f4692de2b734ebc51b7249fcd8f}{getOutputType} ()
\item 
void \hyperlink{class_yig_cable_graphic_a2e3d5de23a02f8e7a3e4a667f1d7a4ac}{setPoint1} (QPoint point)
\item 
void \hyperlink{class_yig_cable_graphic_a837884af5bdcf11ca0251dae83e4b24b}{setPoint2} (QPoint point)
\item 
void \hyperlink{class_yig_cable_graphic_aba70f9d1d78ba7897eb0189a6b4558a5}{setOutputType} (\hyperlink{class_yig_cable_graphic_af184598588b32de1439cc157858141db}{CableOutputType} outputType)
\item 
void \hyperlink{class_yig_cable_graphic_a3d581b7dd30db1d88b1fdc7be069c70a}{updateCurrentPoint} (QPoint point)
\item 
void \hyperlink{class_yig_cable_graphic_a3a7166ebc91833600ab3346d602821c5}{updatePos} (const QPointF \&point)
\item 
void \hyperlink{class_yig_cable_graphic_ada72c1dcf6ef93345c40437f3a478514}{itemClick} (QGraphicsItem $\ast$item)
\item 
void \hyperlink{class_yig_cable_graphic_a3f7d37fcb87f9c7ce2c3b089e586e28c}{removeFromScene} (QGraphicsScene $\ast$scene)
\item 
void \hyperlink{class_yig_cable_graphic_ad83e3f7f1fb851225fc81981d93654f6}{mouseClickEndPoint} (QPoint point)
\item 
void \hyperlink{class_yig_cable_graphic_ad7c494a39153fcf35fd532e31d58c1a4}{setSelectable} (bool sectableBool)
\item 
void \hyperlink{class_yig_cable_graphic_abb914958dbe015681f2eabd1471f08ab}{keyboardDelete} ()
\item 
void \hyperlink{class_yig_cable_graphic_ad644cc2e2424468166c5b1332df64136}{setMapKey} (QString mapKey)
\item 
QString \hyperlink{class_yig_cable_graphic_a12cba010e40de67b387f542ede859194}{getMapKey} ()
\end{DoxyCompactItemize}


\subsection{Detailed Description}
\hyperlink{class_yig_cable_graphic}{YigCableGraphic} draws the cable segments between synth ellipses 

\subsection{Member Enumeration Documentation}
\hypertarget{class_yig_cable_graphic_af184598588b32de1439cc157858141db}{
\index{YigCableGraphic@{YigCableGraphic}!CableOutputType@{CableOutputType}}
\index{CableOutputType@{CableOutputType}!YigCableGraphic@{YigCableGraphic}}
\subsubsection[{CableOutputType}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf YigCableGraphic::CableOutputType}}}
\label{class_yig_cable_graphic_af184598588b32de1439cc157858141db}
Declares the three types of output a cable could have  NO\_\-OUTPUT Cable has no output, for instance if it were a current cable from the mouse, might be phased out  AUDIO This cable is connected to a synth's audio input  MODULATION This cable is connected to a synth's mod input 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_yig_cable_graphic_a4d24010223810768cf2910b789e90820}{
\index{YigCableGraphic@{YigCableGraphic}!YigCableGraphic@{YigCableGraphic}}
\index{YigCableGraphic@{YigCableGraphic}!YigCableGraphic@{YigCableGraphic}}
\subsubsection[{YigCableGraphic}]{\setlength{\rightskip}{0pt plus 5cm}YigCableGraphic::YigCableGraphic (const QLineF \& {\em line}, \/  QString {\em inputKey}, \/  QString {\em outputKey} = {\ttfamily \char`\"{}\char`\"{}}, \/  {\bf CableOutputType} {\em outputType} = {\ttfamily NO\_\-OUTPUT})}}
\label{class_yig_cable_graphic_a4d24010223810768cf2910b789e90820}
\hyperlink{class_yig_cable_graphic}{YigCableGraphic} constructor 
\begin{DoxyParams}{Parameters}
\item[{\em const}]QLineF \&line Initial line to create the graphic with \item[{\em QString}]inputKey the map key for the synth that BEGINS the cable \item[{\em QString}]outputKey the map key for the synth that ENDS the cable \item[{\em CableOutputType}]outputType the type of output for the cable, either NO\_\-OUTPUT, AUDIO, or MODULATION \end{DoxyParams}


\subsection{Member Function Documentation}
\hypertarget{class_yig_cable_graphic_a65c2bb0def55c09b0eb50f9f6fdffc9a}{
\index{YigCableGraphic@{YigCableGraphic}!addArrow@{addArrow}}
\index{addArrow@{addArrow}!YigCableGraphic@{YigCableGraphic}}
\subsubsection[{addArrow}]{\setlength{\rightskip}{0pt plus 5cm}void YigCableGraphic::addArrow ()}}
\label{class_yig_cable_graphic_a65c2bb0def55c09b0eb50f9f6fdffc9a}
\hyperlink{class_yig_cable_graphic_a65c2bb0def55c09b0eb50f9f6fdffc9a}{addArrow()} adds the output arrow from the scene \hypertarget{class_yig_cable_graphic_a3cb69e60cf55da31adbb7d58acd3c8e8}{
\index{YigCableGraphic@{YigCableGraphic}!cableKeyboardDeleted@{cableKeyboardDeleted}}
\index{cableKeyboardDeleted@{cableKeyboardDeleted}!YigCableGraphic@{YigCableGraphic}}
\subsubsection[{cableKeyboardDeleted}]{\setlength{\rightskip}{0pt plus 5cm}void YigCableGraphic::cableKeyboardDeleted (QString {\em mapKey})\hspace{0.3cm}{\ttfamily  \mbox{[}signal\mbox{]}}}}
\label{class_yig_cable_graphic_a3cb69e60cf55da31adbb7d58acd3c8e8}
overridden to change highlight painting \hypertarget{class_yig_cable_graphic_a1174111d6445e3d7b3bd4541bfb4b584}{
\index{YigCableGraphic@{YigCableGraphic}!getInputKey@{getInputKey}}
\index{getInputKey@{getInputKey}!YigCableGraphic@{YigCableGraphic}}
\subsubsection[{getInputKey}]{\setlength{\rightskip}{0pt plus 5cm}QString YigCableGraphic::getInputKey ()}}
\label{class_yig_cable_graphic_a1174111d6445e3d7b3bd4541bfb4b584}
getIntputKey Get the map key for the synth that BEGINS the cable \begin{DoxyReturn}{Returns}
QString The map key 
\end{DoxyReturn}
\hypertarget{class_yig_cable_graphic_a12cba010e40de67b387f542ede859194}{
\index{YigCableGraphic@{YigCableGraphic}!getMapKey@{getMapKey}}
\index{getMapKey@{getMapKey}!YigCableGraphic@{YigCableGraphic}}
\subsubsection[{getMapKey}]{\setlength{\rightskip}{0pt plus 5cm}QString YigCableGraphic::getMapKey ()}}
\label{class_yig_cable_graphic_a12cba010e40de67b387f542ede859194}
getMapKey \begin{DoxyReturn}{Returns}
QString mapKey for this cable in the \hyperlink{class_yig_network_channel_view}{YigNetworkChannelView} cableGraphicMap 
\end{DoxyReturn}
\hypertarget{class_yig_cable_graphic_a95d44b11abbe2b39d3923ea4ad854be7}{
\index{YigCableGraphic@{YigCableGraphic}!getOutputKey@{getOutputKey}}
\index{getOutputKey@{getOutputKey}!YigCableGraphic@{YigCableGraphic}}
\subsubsection[{getOutputKey}]{\setlength{\rightskip}{0pt plus 5cm}QString YigCableGraphic::getOutputKey ()}}
\label{class_yig_cable_graphic_a95d44b11abbe2b39d3923ea4ad854be7}
getOutputKey Get the map key for the synth that ENDS the cable \begin{DoxyReturn}{Returns}
QString The map key 
\end{DoxyReturn}
\hypertarget{class_yig_cable_graphic_adaa87f4692de2b734ebc51b7249fcd8f}{
\index{YigCableGraphic@{YigCableGraphic}!getOutputType@{getOutputType}}
\index{getOutputType@{getOutputType}!YigCableGraphic@{YigCableGraphic}}
\subsubsection[{getOutputType}]{\setlength{\rightskip}{0pt plus 5cm}{\bf YigCableGraphic::CableOutputType} YigCableGraphic::getOutputType ()}}
\label{class_yig_cable_graphic_adaa87f4692de2b734ebc51b7249fcd8f}
getOutputType Get the type of output for the cable, either NO\_\-OUTPUT, AUDIO, or MODULATION \begin{DoxyReturn}{Returns}
CableOutputType The type 
\end{DoxyReturn}
\hypertarget{class_yig_cable_graphic_ada72c1dcf6ef93345c40437f3a478514}{
\index{YigCableGraphic@{YigCableGraphic}!itemClick@{itemClick}}
\index{itemClick@{itemClick}!YigCableGraphic@{YigCableGraphic}}
\subsubsection[{itemClick}]{\setlength{\rightskip}{0pt plus 5cm}void YigCableGraphic::itemClick (QGraphicsItem $\ast$ {\em item})}}
\label{class_yig_cable_graphic_ada72c1dcf6ef93345c40437f3a478514}
itemClick When the user clicks on one of items 
\begin{DoxyParams}{Parameters}
\item[{\em QGraphicsItem$\ast$}]item \end{DoxyParams}
\hypertarget{class_yig_cable_graphic_abb914958dbe015681f2eabd1471f08ab}{
\index{YigCableGraphic@{YigCableGraphic}!keyboardDelete@{keyboardDelete}}
\index{keyboardDelete@{keyboardDelete}!YigCableGraphic@{YigCableGraphic}}
\subsubsection[{keyboardDelete}]{\setlength{\rightskip}{0pt plus 5cm}void YigCableGraphic::keyboardDelete ()}}
\label{class_yig_cable_graphic_abb914958dbe015681f2eabd1471f08ab}
keyboardDelete Called from a contained line when the local user attempts to delete it from their keyboard \hypertarget{class_yig_cable_graphic_ad83e3f7f1fb851225fc81981d93654f6}{
\index{YigCableGraphic@{YigCableGraphic}!mouseClickEndPoint@{mouseClickEndPoint}}
\index{mouseClickEndPoint@{mouseClickEndPoint}!YigCableGraphic@{YigCableGraphic}}
\subsubsection[{mouseClickEndPoint}]{\setlength{\rightskip}{0pt plus 5cm}void YigCableGraphic::mouseClickEndPoint (QPoint {\em point})}}
\label{class_yig_cable_graphic_ad83e3f7f1fb851225fc81981d93654f6}
This is a bit of a hack... mouseClickEndPoint adjusts the last 2 lines to the point, to offset the new line creating by the mouse click in the view 
\begin{DoxyParams}{Parameters}
\item[{\em QPoint}]point The new end point of the cable \end{DoxyParams}
\hypertarget{class_yig_cable_graphic_a4f336f5f2e7ef756b036e604277321ee}{
\index{YigCableGraphic@{YigCableGraphic}!removeArrow@{removeArrow}}
\index{removeArrow@{removeArrow}!YigCableGraphic@{YigCableGraphic}}
\subsubsection[{removeArrow}]{\setlength{\rightskip}{0pt plus 5cm}void YigCableGraphic::removeArrow ()}}
\label{class_yig_cable_graphic_a4f336f5f2e7ef756b036e604277321ee}
\hyperlink{class_yig_cable_graphic_a4f336f5f2e7ef756b036e604277321ee}{removeArrow()} removes the output arrow from the scene \hypertarget{class_yig_cable_graphic_a3f7d37fcb87f9c7ce2c3b089e586e28c}{
\index{YigCableGraphic@{YigCableGraphic}!removeFromScene@{removeFromScene}}
\index{removeFromScene@{removeFromScene}!YigCableGraphic@{YigCableGraphic}}
\subsubsection[{removeFromScene}]{\setlength{\rightskip}{0pt plus 5cm}void YigCableGraphic::removeFromScene (QGraphicsScene $\ast$ {\em scene})}}
\label{class_yig_cable_graphic_a3f7d37fcb87f9c7ce2c3b089e586e28c}
addLineSegment Add a new line segment at the end of the current list of lines 
\begin{DoxyParams}{Parameters}
\item[{\em QPoint}]point the X/Y coordinate to where the new line will connect it will always go come the last point, if there is no other line, it will be a line to/from the same point \end{DoxyParams}
\begin{DoxyReturn}{Returns}
QGraphicsLineItem$\ast$ pointer to the new line graphic made removeFromScene Removes all line segments from the given scen 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
\item[{\em QGraphicsScene$\ast$}]scene The scene from which we remove the lines \end{DoxyParams}
\hypertarget{class_yig_cable_graphic_ad644cc2e2424468166c5b1332df64136}{
\index{YigCableGraphic@{YigCableGraphic}!setMapKey@{setMapKey}}
\index{setMapKey@{setMapKey}!YigCableGraphic@{YigCableGraphic}}
\subsubsection[{setMapKey}]{\setlength{\rightskip}{0pt plus 5cm}void YigCableGraphic::setMapKey (QString {\em mapKey})}}
\label{class_yig_cable_graphic_ad644cc2e2424468166c5b1332df64136}
setMapKey 
\begin{DoxyParams}{Parameters}
\item[{\em QString}]mapKey stores the map key for this cable internally \end{DoxyParams}
\hypertarget{class_yig_cable_graphic_a54b1003969de5574706ab093cb994013}{
\index{YigCableGraphic@{YigCableGraphic}!setOutputKey@{setOutputKey}}
\index{setOutputKey@{setOutputKey}!YigCableGraphic@{YigCableGraphic}}
\subsubsection[{setOutputKey}]{\setlength{\rightskip}{0pt plus 5cm}void YigCableGraphic::setOutputKey (QString {\em outputKey})}}
\label{class_yig_cable_graphic_a54b1003969de5574706ab093cb994013}
setOutputKey Sets the map key for the synth that ENDS the cable 
\begin{DoxyParams}{Parameters}
\item[{\em QString}]outputKey The map key \end{DoxyParams}
\hypertarget{class_yig_cable_graphic_aba70f9d1d78ba7897eb0189a6b4558a5}{
\index{YigCableGraphic@{YigCableGraphic}!setOutputType@{setOutputType}}
\index{setOutputType@{setOutputType}!YigCableGraphic@{YigCableGraphic}}
\subsubsection[{setOutputType}]{\setlength{\rightskip}{0pt plus 5cm}void YigCableGraphic::setOutputType ({\bf YigCableGraphic::CableOutputType} {\em outputType})}}
\label{class_yig_cable_graphic_aba70f9d1d78ba7897eb0189a6b4558a5}
setOutputType Sets the type of output for the cable, either NO\_\-OUTPUT, AUDIO, or MODULATION 
\begin{DoxyParams}{Parameters}
\item[{\em CableOutputType}]outputType The type \end{DoxyParams}
\hypertarget{class_yig_cable_graphic_a2e3d5de23a02f8e7a3e4a667f1d7a4ac}{
\index{YigCableGraphic@{YigCableGraphic}!setPoint1@{setPoint1}}
\index{setPoint1@{setPoint1}!YigCableGraphic@{YigCableGraphic}}
\subsubsection[{setPoint1}]{\setlength{\rightskip}{0pt plus 5cm}void YigCableGraphic::setPoint1 (QPoint {\em point})}}
\label{class_yig_cable_graphic_a2e3d5de23a02f8e7a3e4a667f1d7a4ac}
setPoint1 the begin point for this line QPoint point the new point 1 \hypertarget{class_yig_cable_graphic_a837884af5bdcf11ca0251dae83e4b24b}{
\index{YigCableGraphic@{YigCableGraphic}!setPoint2@{setPoint2}}
\index{setPoint2@{setPoint2}!YigCableGraphic@{YigCableGraphic}}
\subsubsection[{setPoint2}]{\setlength{\rightskip}{0pt plus 5cm}void YigCableGraphic::setPoint2 (QPoint {\em point})}}
\label{class_yig_cable_graphic_a837884af5bdcf11ca0251dae83e4b24b}
setPoint1 the end point for this line QPoint point the new point 2 \hypertarget{class_yig_cable_graphic_ad7c494a39153fcf35fd532e31d58c1a4}{
\index{YigCableGraphic@{YigCableGraphic}!setSelectable@{setSelectable}}
\index{setSelectable@{setSelectable}!YigCableGraphic@{YigCableGraphic}}
\subsubsection[{setSelectable}]{\setlength{\rightskip}{0pt plus 5cm}void YigCableGraphic::setSelectable (bool {\em sectableBool})}}
\label{class_yig_cable_graphic_ad7c494a39153fcf35fd532e31d58c1a4}
setSelectable Sets whether the cable is selectable/movable bool selectableBool \hypertarget{class_yig_cable_graphic_a3d581b7dd30db1d88b1fdc7be069c70a}{
\index{YigCableGraphic@{YigCableGraphic}!updateCurrentPoint@{updateCurrentPoint}}
\index{updateCurrentPoint@{updateCurrentPoint}!YigCableGraphic@{YigCableGraphic}}
\subsubsection[{updateCurrentPoint}]{\setlength{\rightskip}{0pt plus 5cm}void YigCableGraphic::updateCurrentPoint (QPoint {\em point})}}
\label{class_yig_cable_graphic_a3d581b7dd30db1d88b1fdc7be069c70a}
updateCurrentPoint Updates the last point of the last line of the cable, because of mouse movement 
\begin{DoxyParams}{Parameters}
\item[{\em QPoint}]point The new point where the line will end \end{DoxyParams}
\hypertarget{class_yig_cable_graphic_a3a7166ebc91833600ab3346d602821c5}{
\index{YigCableGraphic@{YigCableGraphic}!updatePos@{updatePos}}
\index{updatePos@{updatePos}!YigCableGraphic@{YigCableGraphic}}
\subsubsection[{updatePos}]{\setlength{\rightskip}{0pt plus 5cm}void YigCableGraphic::updatePos (const QPointF \& {\em point})\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{class_yig_cable_graphic_a3a7166ebc91833600ab3346d602821c5}
update the position of this graphic, used to emit posChanged for networking 
\begin{DoxyParams}{Parameters}
\item[{\em QPointF\&}]point the new position \end{DoxyParams}


Implements \hyperlink{class_yig_base_graphic_a4e5a75636c5970312d6994d19d4df23b}{YigBaseGraphic}.



The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
graphics/yigcablegraphic.h\item 
graphics/yigcablegraphic.cpp\end{DoxyCompactItemize}
